package com.xiqi.microservice.zuul.exception;

import com.netflix.zuul.exception.ZuulException;
import org.springframework.cloud.netflix.zuul.util.ZuulRuntimeException;

/**
 * @program: apigateway
 * @description: 自定义异常
 * @author: Shine
 * @create: 2019-08-01 14:38
 */
public class MyIllegalAccessException extends ZuulException {

    public MyIllegalAccessException(Throwable throwable, String sMessage, int nStatusCode, String errorCause) {
        super(throwable, sMessage, nStatusCode, errorCause);
    }

    public MyIllegalAccessException(String sMessage, int nStatusCode, String errorCause) {
        super(sMessage, nStatusCode, errorCause);
    }

    public MyIllegalAccessException(Throwable throwable, int nStatusCode, String errorCause) {
        super(throwable, nStatusCode, errorCause);
    }

    public MyIllegalAccessException() {
        super(null, "没有权限", 401, "没有全县");
    }
}
